package com.edfeff.bio;

import com.edfeff.bio.adapter.FileAdapter;
import com.edfeff.bio.http.ServerConfig;

public class Main {
    public static void main(String[] args) {
        ServerConfig config = new ServerConfig();
//        config.setAdapterClass(EchoAdapter.class);
        config.setAdapterClass(FileAdapter.class);
//        config.setAdapterClass(DynamicRouterAdapter.class);


        System.out.println("start server...");
        new SimpleHttpServer(config).start();
        System.out.println("stop server.");
    }
}
